
<div class="user_bg ajax_login">
	<div class="login-bg">
			<div class="login-header">
				<img width="100%" src="{$_C.hy_path}images/login-header.png"/>
			</div>
			<div class="login-body">
				<div class="login-exit">
				<a href="javascript:;" class="cancel-btn">X</a>
			</div>
				<div class="login-logo login-fl">
					<div class="login-logo-container">
						<img  width="100%" src="{$_C.hy_path}images/login-logo.jpg"/>
					</div>
					
				</div>
			<div class="login-input login-fl">
				<p>{$_L.PLEASE_INPUT}：</p>
				<div>
					<div style="width: 20%;" class="login-fl">
						{$_L.CARD_ID}:
					</div>
					<div style="width: 70%;"  class="login-fl">
						<div class="login-input-bg">
							<input type="text" name="username" id="username2" value="" />
						</div>
					</div>
				</div>
				<div style="clear: both;height: 10px;">
					
				</div>
				<div>
					<div style="width: 20%;" class="login-fl">
						{$_L.PWD}:
					</div>
					<div style="width: 70%;"  class="login-fl">
						<div class="login-input-bg">
							<input type="password" name="password" id="password2" value="" />
						</div>
					</div>
				</div>
				<div class="login-ctrl">
						<a  href="javascript:;" class="login-btn"><span>{$_L.LOGIN}</span></a>
						
							<a href="javascript:;" class="hy_reg reg-btn"><span>{$_L.REG}|</span></a>
				</div>
			</div>
			</div>
		</div>
		
</div>
<script>
	$('.cancel-btn').click(function(e){
		$('.user_bg').hide()
		});
	
	$('.login-btn').click(function(e){ 
      e.preventDefault();	
	  var username=$('#username2').val();
    var pwd=$('#password2').val();

		$.post('/index.php?g=home&m=user&a=act_login',{
			"{$input['pwd']}":pwd,
			"{$input['account']}":username
			},function(result)
	{ 
	if(result.error==0)
	{
		
		if(result.url)
		{
		window.location.href=result.url;
		}
		else
		{
			window.location.href='index.html';
		}
	}
	else{
		alert(result.content);
	}
		},'json');
		
		})
	
	
    </script>